package com.pz.gulimall.auth.feign;

import com.pz.gulimall.common.to.OrderInfoTo;
import com.pz.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient("gulimall-order")
public interface OrderFeign {
    @PostMapping("/order/order/saveOrder")
    R saveOrder(@RequestBody OrderInfoTo orderInfoTo);

    @RequestMapping("/order/order/list")
    R list(@RequestParam Map<String, Object> params);
}
